﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Organization"
				        namespace="Inovout.Organization.Membership.Security">

  <joined-subclass name="EmployeeUser" extends="Inovout.Membership.Security.MembershipUser"
                   table="Organization_EmployeeUser">
    <key column="EmployeeUserId" />
    <many-to-one name="Employee" column="EmployeeId" foreign-key="FK_Organization_Employee_EmployeeId_Organization_EmployeeUser_EmployeeUserId" cascade="all" unique="true"
                 class="Inovout.Organization.Domain.Employee" />
    
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </joined-subclass>
</hibernate-mapping>


